package com.kai.service;

import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public interface UsdtServie {

    // step1 Construct payload
    public String createpayload(String amount);
    // step2 Construct transaction base
    public String createrawtransaction(String address_from);
    // step3 Attach payload output
    public String attachPayloadOutput(String txHex, String payload);
    // step4 Attach reference/receiver output
    public String txReference(String rawtx, String destination);
    // step5 Specify miner fee and attach change output
    public String txCharge(String tx, String changeAddress);

    // 列出区块所有usdt交易
    public JSONObject listBlockUsdttx(long height);
    // usdt 交易详情
    public JSONObject txDetails(String txid);
    // usdt提现交易详情
    public JSONObject txDetailsWithdraw(String txid);
    public int getBlockCount();
    public int getBlockCountWithdraw();
    //查询address的usdt
    public JSONObject balanceByAddress(String address);

    // usdt简单发送交易
    //归集资金
    public void merge();

    public int lastBlockHeight(int id, int height);

    public boolean parseBlock(int index);

    public String getNewAddress();

    public Map<String,Object> getColdAddress(String accountType);

    public Map<String,Object> getPlatAddress(String accountType);

    public Map<String,Object> getHotAddress(String accountType);

    public boolean vailedAddress(String address);
    public Map<String,Object> getPreinstall();

    public Boolean blockScanUsdt();

    public Boolean blockScanUsdtWithdraw();
}
